
// 选择门派时的传送按钮请求 {"门派":"大唐官府"}
// @ts-ignore
export async function execute(client_id, message_json) {
    let characters = G.Characters.get_current_login_characters(client_id);
    if (characters["等级"] < 10) {
        ClientUtils.send_basic_prompt(client_id, "#Y/请先将等级提升到10级");
    } else {
        //传送到门派地图
        let result = G.MapUtils.move_characters_to_sect(client_id, characters, message_json["门派"]);
        let post = {
            "主线": 2,
            "编号": 1,
            "地图": G.MapUtils.sect_map_data[message_json["门派"]][0],
            "进度": 2222,
            "附加": {}
        };
        if (result) {
            if (characters["门派"] === "无门派") {
                characters["剧情"]["移除"] = true;
                ClientUtils.send_client_message(client_id, 227, characters["剧情"]);
                characters["剧情"]= post;
                ClientUtils.send_client_message(client_id, 227, characters["剧情"]);
            } else {
                //添加拜师临时剧情
                ClientUtils.send_client_message(client_id, 227, post);
            }
        }
    }
}